package com.hnkywl.sts.entity.base;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * 按吨收取
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-20
 * Time: 下午8:39
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_SYS_ADSQ")
public class Adsq {
    @Id
    @SequenceGenerator(name = "seqAdsq", allocationSize = 1, sequenceName = "SEQ_SYS_ADSQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqAdsq")
    private Long id;

    //开始时间
    private Date startDate;

    //结束时间
    private Date endDate;

    //收费标准
    private Double sfbz;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "GSPZ_ID")
    private Gspz gspz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Double getSfbz() {
        return sfbz;
    }

    public void setSfbz(Double sfbz) {
        this.sfbz = sfbz;
    }

    public Gspz getGspz() {
        return gspz;
    }

    public void setGspz(Gspz gspz) {
        this.gspz = gspz;
    }
}
